package com.ming.mallchat.common.chat.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ming.mallchat.common.chat.mapper.RoomGroupMapper;
import com.ming.mallchat.common.chat.pojo.RoomGroup;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomGroupDao extends ServiceImpl<RoomGroupMapper, RoomGroup> {
    public List<RoomGroup> listByRoomIds(List<Long> roomIds) {
        return lambdaQuery().in(RoomGroup::getRoom_id,roomIds).list();
    }
}
